﻿namespace rtgen_guiclient
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class AddComputer : Form
    {
        private Button btnCancel;
        private Button btnOK;
        public CheckBox cbCredentials;
        private IContainer components;
        private Label label1;
        private Label label2;
        private Label label3;
        private Label label4;
        public TextBox txtComputername;
        public TextBox txtDomain;
        public TextBox txtPassword;
        public TextBox txtUsername;

        public AddComputer()
        {
            this.InitializeComponent();
        }

        private void cbCredentials_CheckedChanged(object sender, EventArgs e)
        {
            if (this.cbCredentials.Checked)
            {
                this.txtUsername.ReadOnly = true;
                this.txtPassword.ReadOnly = true;
                this.txtDomain.ReadOnly = true;
            }
            else
            {
                this.txtUsername.ReadOnly = false;
                this.txtPassword.ReadOnly = false;
                this.txtDomain.ReadOnly = false;
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.txtComputername = new TextBox();
            this.label1 = new Label();
            this.btnOK = new Button();
            this.btnCancel = new Button();
            this.cbCredentials = new CheckBox();
            this.txtUsername = new TextBox();
            this.txtPassword = new TextBox();
            this.txtDomain = new TextBox();
            this.label2 = new Label();
            this.label3 = new Label();
            this.label4 = new Label();
            base.SuspendLayout();
            this.txtComputername.Location = new Point(0x79, 9);
            this.txtComputername.Name = "txtComputername";
            this.txtComputername.Size = new Size(0x8b, 20);
            this.txtComputername.TabIndex = 0;
            this.label1.AutoSize = true;
            this.label1.Location = new Point(12, 12);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x67, 13);
            this.label1.TabIndex = 1;
            this.label1.Text = "Computername or IP";
            this.btnOK.DialogResult = DialogResult.OK;
            this.btnOK.Location = new Point(0xb9, 160);
            this.btnOK.Name = "btnOK";
            this.btnOK.Size = new Size(0x4b, 0x17);
            this.btnOK.TabIndex = 2;
            this.btnOK.Text = "OK";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnCancel.DialogResult = DialogResult.Cancel;
            this.btnCancel.Location = new Point(0x68, 160);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x17);
            this.btnCancel.TabIndex = 3;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.cbCredentials.AutoSize = true;
            this.cbCredentials.Checked = true;
            this.cbCredentials.CheckState = CheckState.Checked;
            this.cbCredentials.Location = new Point(0x79, 0x2d);
            this.cbCredentials.Name = "cbCredentials";
            this.cbCredentials.Size = new Size(0x86, 0x11);
            this.cbCredentials.TabIndex = 4;
            this.cbCredentials.Text = "Use default credentials";
            this.cbCredentials.UseVisualStyleBackColor = true;
            this.cbCredentials.CheckedChanged += new EventHandler(this.cbCredentials_CheckedChanged);
            this.txtUsername.Location = new Point(160, 0x44);
            this.txtUsername.Name = "txtUsername";
            this.txtUsername.ReadOnly = true;
            this.txtUsername.Size = new Size(100, 20);
            this.txtUsername.TabIndex = 5;
            this.txtPassword.Location = new Point(160, 0x60);
            this.txtPassword.Name = "txtPassword";
            this.txtPassword.ReadOnly = true;
            this.txtPassword.Size = new Size(100, 20);
            this.txtPassword.TabIndex = 6;
            this.txtDomain.Location = new Point(160, 0x7a);
            this.txtDomain.Name = "txtDomain";
            this.txtDomain.ReadOnly = true;
            this.txtDomain.Size = new Size(100, 20);
            this.txtDomain.TabIndex = 7;
            this.label2.AutoSize = true;
            this.label2.Location = new Point(0x5f, 0x4b);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x37, 13);
            this.label2.TabIndex = 8;
            this.label2.Text = "Username";
            this.label3.AutoSize = true;
            this.label3.Location = new Point(0x5f, 0x66);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x35, 13);
            this.label3.TabIndex = 9;
            this.label3.Text = "Password";
            this.label4.AutoSize = true;
            this.label4.Location = new Point(0x5f, 0x81);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0x2b, 13);
            this.label4.TabIndex = 10;
            this.label4.Text = "Domain";
            base.AcceptButton = this.btnOK;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.CancelButton = this.btnCancel;
            base.ClientSize = new Size(0x109, 0xc2);
            base.Controls.Add(this.label4);
            base.Controls.Add(this.label3);
            base.Controls.Add(this.label2);
            base.Controls.Add(this.txtDomain);
            base.Controls.Add(this.txtPassword);
            base.Controls.Add(this.txtUsername);
            base.Controls.Add(this.cbCredentials);
            base.Controls.Add(this.btnCancel);
            base.Controls.Add(this.btnOK);
            base.Controls.Add(this.label1);
            base.Controls.Add(this.txtComputername);
            base.Name = "AddComputer";
            this.Text = "AddComputer";
            base.ResumeLayout(false);
            base.PerformLayout();
        }
    }
}

